# **************************************
# --*-- coding: utf-8 --*--
# @Author  : white
# @FileName: common.py
# @Time    : 2025-08-26
# **************************************
from pathlib import Path
import matplotlib.pyplot as plt

plt.rcParams['font.family'] = 'SimHei'


def img_path():
    img = Path("images")
    img.mkdir(exist_ok=True)
    return img


def img_save(name: str):
    plt.savefig(img_path().joinpath(name))
